package com.ss.android.article.lite;

import android.os.Handler;

import com.ss.android.article.base.feature.c.FeedAdapter;
import com.ss.android.messagebus.Subscriber;
import com.ss.android.messagebus.SubscriptionRouter;

public final class aa {
    Handler a;
    private Runnable b;
    private boolean c;

    public aa(Runnable arg2) {
        this.b = arg2;
        this.a = new bb(this);
    }

    final void a() {
        if (!this.c) {
            SubscriptionRouter.removeSubscriber(this);
            this.b.run();
            this.c = true;
        }
    }

    @Subscriber
    public final void onFeedFirstShow(FeedAdapter.b$b arg3) {
        this.a.removeMessages(0);
        this.a();
    }
}

